package c.g.a.a;

import android.text.TextUtils;
import c.f.a.a.a.a;
import org.json.JSONException;
import org.json.JSONObject;

/* compiled from: DeviceName */
public final class d {
    @Deprecated
    public final String a;
    public final String b;
    public final String c;
    public final String d;

    public d(String str, String str2, String str3, String str4) {
        this.a = str;
        this.b = str2;
        this.c = str3;
        this.d = str4;
    }

    public String a() {
        if (TextUtils.isEmpty(this.b)) {
            return a.i(this.d);
        }
        return this.b;
    }

    public d(JSONObject jSONObject, b bVar) throws JSONException {
        this.a = jSONObject.getString("manufacturer");
        this.b = jSONObject.getString("market_name");
        this.c = jSONObject.getString("codename");
        this.d = jSONObject.getString("model");
    }
}
